<?php if (isset($story)) {  ?>


<div class="row-fluid" >
        
        <div class="span12">
            
                <h1><?php echo '<h1>' ;

                    echo $this->Html->link(h($project['Project']['name']),'../projects/view/'.$project['Project']['id']);
                ?>

                </h1>
       
        </div>
    </div><br/><br/>

    
<div class="tabbable tabs-left">
              <ul class="nav nav-tabs">
                <li class="active"><a href="#general" data-toggle="tab">General</a></li>
                <li class=""><a href="#tasks" data-toggle="tab">Tareas</a></li>
                <li class=""><a href="#comments" data-toggle="tab">Comentarios</a></li>
              </ul>
              <div class="tab-content">
                <div class="tab-pane active" id="general">
                     
                    <?php echo $this->element('stories/viewStory');?>
                </div>
                <div class="tab-pane" id="tasks">
                  <?php echo $this->element('stories/addTask');
                  echo $this->element('stories/taskList');
                 // var_dump($story['Task']);
                          ?>
                </div>
                <div class="tab-pane" id="comments">
                  <?php echo $this->element('stories/addComment');
                  echo $this->element('stories/commentList');
                 // var_dump($story['Task']);
                          ?>
                </div>
              </div>
            </div>
 


<?php } else {?>
    <br/>
    <div class="alert alert-info">
        Error de acceso.
    </div>
<?php }?>


